
const mongoose = require('mongoose')

const Scheme = mongoose.Schema

const studentType = {
    "id": Number,
    "studentname": String,
    "class": { type: Scheme.Types.ObjectId, ref: "class" },
    "score": Object,
    "password": String,
    "gender": Number,
    "introduction": String,
    "avatarUrl": String
}

const studentModel = mongoose.model('student', new Scheme(studentType, { versionKey: false, minimize: false }))

module.exports = studentModel